﻿@model LoginRegisterModel
@using SpotsHub.Gateway.Models.Customer;
@using Nop.Core;
@using Nop.Core.Infrastructure;
@using Nop.Core.Infrastructure.DependencyManagement;

@{
    var model = Model.RegisterModel;
    //register URL with return URL (if specified)
    var registerUrl = Url.RouteUrl("Register");
    string url = null;
    if (!String.IsNullOrEmpty(this.Context.Request.QueryString["returnUrl"]))
    {
        url = this.Context.Request.QueryString["returnUrl"];
        var webHelper = EngineContext.Current.Resolve<IWebHelper>();
        registerUrl = webHelper.ModifyQueryString(registerUrl, "returnurl=" + HttpUtility.UrlEncode(this.Context.Request.QueryString["returnUrl"]), null);
    }
}

<div class="register-content">
    <h2>Same Day Shipping Can Be This Affordable!</h2>
    <p>Vancouver is considered to be one of the most digitally connected places in the world but many local businesses are not online because they don't exactly know where to start.</p>
    <div class="register-content-cart register-content-list">
        <div class="register-content-cart-icon"></div>
        <div class="register-content-text"><p>Shopping with the best deals you can find locally</p></div>
    </div>
    <div class="register-content-logistics register-content-list">
        <div class="register-content-logistics-icon"></div>
        <div class="register-content-text"><p>Guaranteed same-day delivery for orders in the vincinity</p></div>
    </div>
    <div class="register-content-pin register-content-list">
        <div class="register-content-pin-icon"></div>
        <div class="register-content-text"><p>Open your online store now to make money</p></div>
    </div>

</div>
<div class="register-block window">
    @using (Html.BeginForm("Register", "Customer", new { area = "Logistics" }))
    {
        @Html.AntiForgeryToken()
        @Html.Hidden("IsRegister", true);
        <div class="window-title grad-lightgrey grad">
            <div class="window-title-bar grad-titleshine grad">
                <h2>Sign Up</h2>
            </div>
        </div>
        <div class="window-content space signup">

            <div class="signup-name signup-fieldgroup">
                <div class="signup-firstname">
                    <div class="form-label">@Html.LabelFor(m => model.RegisterModel.FirstName)</div>
                    <div class="form-error-float"><div class="form-error-float-tail"></div>@Html.ValidationMessageFor(m => model.RegisterModel.FirstName)</div>
                    @Html.EditorFor(m => model.RegisterModel.FirstName)
                </div>
                <div class="signup-lastname">
                    <div class="form-label">@Html.LabelFor(m => model.RegisterModel.LastName)</div>
                    <div class="form-error-float"><div class="form-error-float-tail"></div>@Html.ValidationMessageFor(m => model.RegisterModel.LastName)</div>
                    @Html.EditorFor(m => model.RegisterModel.LastName)
                </div>
                <div class="content-clear"></div>
            </div>

            <div class="signup-fieldgroup">
                <div class="signup-email">
                    <div class="form-label">@Html.LabelFor(m => model.RegisterModel.Email)</div>
                    <div class="form-error-float"><div class="form-error-float-tail"></div>@Html.ValidationMessageFor(m => model.RegisterModel.Email)</div>
                    @Html.EditorFor(m => model.RegisterModel.Email)
                </div>
            </div>
            <div class="signup-fieldgroup">
                <div class="signup-password">
                    <div class="form-label">@Html.LabelFor(m => model.RegisterModel.Password)</div>
                    <div class="form-error-float"><div class="form-error-float-tail"></div>@Html.ValidationMessageFor(m => model.RegisterModel.Password)</div>
                    @Html.EditorFor(m => model.RegisterModel.Password)
                </div>
            </div>
            <div class="signup-fieldgroup">
                <div class="signup-passwordconfirm">
                    <div class="form-label">@Html.LabelFor(m => model.RegisterModel.ConfirmPassword)</div>
                    <div class="form-error-float"><div class="form-error-float-tail"></div>@Html.ValidationMessageFor(m => model.RegisterModel.ConfirmPassword)</div>
                    @Html.EditorFor(m => model.RegisterModel.ConfirmPassword)
                </div>
            </div>
            <div class="content-clear"></div>

            <div class="signup-terms">
                <p>By clicking “Sign Up”, you have read our <a href="">Privacy Policy</a>, and you agree to our <a href="">Terms and Conditions</a> of usage.</p>
            </div>
            <div class="signup-submit">
                <input class="signup-button" type="submit" value="Sign Up" />
            </div>
            <div class="horizontal-rule-left"></div>
            <div class="horizontal-rule-right"></div>
            <div class="signup-or">or</div>
            <div class="signup-facebook">
                <a href="/" class="signup-facebook-button"><div class="signup-facebook-icon icon"></div>Sign Up with Facebook</a>
            </div>
            <div class="signup-bottom">
                <p>Already have an account? Please <a href="@registerUrl">Log in</a>.</p>
            </div>
        </div>
    }
</div>
<div class="register-storeaccount">
    <p>Want to sell your items online? You can open a vendor’s account with SpotsHUB and start your online store today!</p>
    <a href="">Open My Store!</a>
</div>
<div class="content-clear"></div>
